package com.dao;

import com.model.PhoneNumVerifyCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface PhoneNumVerifyCodeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PhoneNumVerifyCode record);

    int insertSelective(PhoneNumVerifyCode record);

    PhoneNumVerifyCode selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PhoneNumVerifyCode record);

    int updateByPrimaryKey(PhoneNumVerifyCode record);

    PhoneNumVerifyCode selectByPhoneNumAndVerifyCode(@Param("mobile") String mobile,@Param("verifyCode") String verifyCode);

    int deleteByPhoneNum(@Param("phoneNum")  String phoneNum);
}